Added class for handling dimensioned variables in MATLAB