move hashing functions to module dedup.hashing