Massive elliptic curve arithmetic speedup

added projective adding and doubling, and new improved modular inverse
algorithm