solve towers of hanoi with N pegs