@Contract(pure = true)
  public int select(int left, int base, int right) {
    if (myIndex == 0) return left;
    if (myIndex == 1) return base;
    if (myIndex == 2) return right;
    throw new IllegalStateException();
  }
@Contract(pure = true)
  public int select(int left, int base, int right)