toDigits and toDigitsRev impls
completion of exercises 1-4
hanoi implementation