add consistent hash class