Draft implementation of Matrix class