added bspline basis function generation code (basic setup, does not handle derivatives, etc). Changed srsf conversion code to use splines for the gradient calculation, started regression code.