checkArray method added
check array method split into 1d and 2d
isTriangular basic method added
triangular checker added