Spline library (cubic splines + cubic bezier curves)

I've made a library for splines and bezier curves. Current limitation is all segments can not be straight (in this case second derivative is zero and and normal/binormal are undefined.