Update CubicSpline.java

Updated Cubicspline. Not fully working but close, mathematical error somewhere in the code.