Iterative Solution to Tower of Hanoi

using bitwise operations