Added polynomial approximation

Can be made more efficient but is good for testing