Implement the Montgomery technique for speeding up modular