Curve implementation
Curve implementation