Add elapsed time to test output.
Solve problem 3 using Haskell.