Created CubicSpline class