[Haskell] Numeric programming on toy problems in Haskell