troubleshooting matrix_mxn
improving math classes