Added bernstein_polynomial