hanoi(n) = 2 * hanoi(n-1) + hanoi(1)