started to merge curve.h into bezier.h