Implement elliptic curve point class.