Working cubicspline class

It works!