Move digit summation method into library.
Solve problem 56 using Haskell.