created method that decompose square matrix to two upper/lower triangle matrix