consistent hashing implementation

consistent hashing in client