[math] (change:major) Finished implementation of cubic spline interpolation, with five different boundary conditions. Also added a related test suite.