matrix-triang function

Upper and lower triangular matrices