Solve problems 34,42 using Haskell.
Refactor methods into Haskell's Euler library.