Adding spline model

I have added a basic spline model.