Added isTriangular() method.
Added isTriangular() method.