Fixing polynomial code to use std::vector<double> instead of double *. Also adding test cases as I go