Least Square B-spline Approximation