Add isUpperTriangular and isLowerTriangular method

I've also written documentation for the methods to the codo spec