cubic spline fixme and solving ex18.8 correctly