Added code to implement Consistent Hashing