On (Co)homology of triangular Banach algebras