Updated to use the fixed polynomial class (which uses std::vector<double> rather than double *).