Creates and implements a Math Matrix class.