added a new curve.h to contain the curve functionality and transferred it from original bezier.h file