Added a method to test and make sure a point is on the elliptic curve