iteration hanoi.cpp