fully worked example for computing cubic spline with missing nodes