Haskell implementation of Rabin finger printing