added the lowerTriangularMatrix function