/**
   * Generate hash value for the input value.
   *
   * @param x
   * @return
   */
  private int myhash(AnyType x) {
    int hashVal = x.hashCode();

    hashVal %= array.length;
    if (hashVal < 0) hashVal += array.length;

    return hashVal;
  }