towers of hanoi non-recursive