add bernstein polynomial