Basic Bézier curve library with example