A consistent hashing implementation in scala