Updated the BezierCurves class

- Added support for non-connected sequences of curves.
- Added the Derivative function.