Update #5: Final things.

Added a method to check if the matrix is orthogonal. It hasn't been tested yet, though. Also, added methods to check if the matrix is either upper triangular, lower triangular, or diagonal.