added haskell solution for problem 2