Spline algorithms for curves and surfaces