added computation for the third derivative of the spline