Implemented curve_knot_refine