Changed calculate cubicSpline function interface
Added method to generate table
Fixed few calculation bugs
Added new Test example for calculating spline