adding knot insertion to Bezier spline solver