Fixed CubicSpline; Added derivatives