Implementation of a MathMatrix Class