Matrix Representation Calculator