Implemented the Matrix2 class.