bernstein basis helpers

This adds construction of a polynomial on a single interval from a list of derivatives at the edges, and a converter between Bernstein basis functions of different degrees. 

Both are implemented as non-public helpers at the moment, I can't find a reason to make them public. As such, neither checks its input.