fitkappa entirely in c using compute-time computed spline coefficients. This is really overkill, but it's kind of fun