Implement plain consistent hashing algorithm