Removed temporary file
Added a Haskell version which uses tries.