Added new constructor and a bit of tests for Matrix class