Completed implementation of mat2
Fixed the mat2 unit test