Fixing transpose() and isSymmetric()

Fixes the isSymmetric() method which relies on the transpose() method.
If a matrix is symmetric, it is equal to its transpose.

I am trying to reuse the methods in other methods to be more inline
with the mathematical definitions and to avoid code duplication.