Added tower and isTriangular and added another debug method to print 2d Arrays.