docs: protected void resize(int newCapacity) {
          parent = Arrays.copyOf(parent, newCapacity);
          left = Arrays.copyOf(left, newCapacity);
          right = Arrays.copyOf(right, newCapacity);
          depth = Arrays.copyOf(depth, newCapacity);
      }