Tom's Modular Power Calculator

Computes  bx mod m