Symmetric check added.
Started on abstracting a matrix class.