refine function

Refining splines through adding knots