Fixed the modular exponentiation function. Txtfile contains solution used