added haskell solution for problem 9