hanoi recursively and with stack