Implemented powerpartition in Haskell