implemented modinv method using extended euclidean alg
encrypt/decrypt not working again, dangit