Interpolation with a cubic spline