Some traits for Consistent hashing. For Scala.