rewrote Matrix Test to work with Polynomials instead of doubles, which actually just shows the current memory allocation problem in the Matrix class