Elliptic Curve pure C implementation