Fixed "endianness" bug where polynomials were coming out wrong because of the order of coefficients