Binary Exponentiation Code