adding knot removal to bezier solver