Hanoi tower algorithm written in C