spline small spline library adopted from Tino Kluge, see http://kluge.in-chemnitz.de/opensource/spline/ Interpolates with natural boundary conditions (2nd derivatives are zero) and extrapolates linearly.