Adaptive free knot splines