Type of matrix change to BigInteger to support higher power polynomials