Class for consistent Hashing. Feel free to use and expand where
necessary.