Committing the towers of Hanoi final version.