Compare digits functions to a Haskell library in benchmarks
toDigits and fromDigits are a bit faster, and there's a new foldDigits
replaceDigits and numDigits