スプライン補間
https://github.com/okumuralab/algo-c/blob/master/src/spline.c