8-bit modular exponentiation code?