B-Spline class for points interpolation and fitting.