Add haskell implementation of polynomial.