Modular Exponentiation Calculator

Calculate (base^exp) mod m efficiently.