Solving projecteuler problems in haskell