mpspline_fit1 function

Fit spline parameters