A new matrix implementation storing data in row-major form