Add method to find modular multiplicative inverse.