Haskell TopCoder Problems