Added method finding reverse in modular arithmetic.