Solver for Natural Spline