Fixed several bugs in matrix class. Added new test cases to MatrixTest.
Cleaned up syntax.
Fixed storage order of matices.
Merge pull request #2 from niklasborwell/master

Fixed several bugs in matrix class. Added new test cases to MatrixTest.