find inverse in modular arithmetic-how to find inverse modulo m