Hanoi: disks-moving algorithm