Moving MatrixValue into stats package