Add Haskell implementation
Merge pull request #19 from GallagherCommaJack/patch-1

Add Haskell implementation