Towers of Hanoi, an efficient iterative solution