[math] (bug-fix:major) Fixed cubic spline computation (cases: clamped, natural and knot-a-not)
[math] (bug-fix:minor) Ditto