Nilsimsa hash function for deduplication