Added Polynomial helper class, #948
Made implicit_runge-kutta.cpp use Polynomial class, #948