consistent Hashing code code