modified Hanoi Tower Stack