Replaced the numeric root solver the bezier clipping algorithm.
Added functionality for bernstein polynomials.