power: add iterative func

Compares the output of the recursive func with the iterative func.
xor_encrypt: create