MATLAB classes that implement block-wise linear (matrix) operations