Fixed compilation errors for template specializations.
Added initial efforts for helper functions to create commonly used piecewise curves. Currently implemented is piecewise cubic spline given data points and using finite differences for slope approximations.