using montgomery method for modular multiplication 5505858