Added MatrixUtil class. Will soon replace matrix class.