Matlab Cubic Spline Interpolation Derivation Rules