Implemented CubicSpline