https://medium.com/@monocosmo77/new-updates-on-cubic-spline-interpolation-part6-machine-learning-2024-f551d8c9e16f