Curve fitting and optimal interpolation for CNC machining under confined error using quadratic B-splines. (September 2015)