Add Hanoi implementation.