@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    IntPair that = (IntPair)o;
    return first == that.first && second == that.second;
  }
@Override
  public boolean equals(Object o)