How to Implement Spline Fitting
tulon.github.io