docs: public void add(E e) {
      // resize when needed
      if(size + 1 > queue.length) {
        resize(size + 1);
      }
      // final int pos = size;
      this.size += 1;
      heapifyUp(size - 1, e);
      heapModified();
    }