Implement "Towers of Hanoi" from Rosettacode.org #170

ported from the rust submission on rosettacode.org.