new extra program for only calculating modular inverse