Adds class MatrixStorage