peek() {
    const nodes = this.nodes_;
    if (nodes.length == 0) {
      return undefined;
    }
    return nodes[0].getValue();
  }
Retrieves but does not remove the root value of this heap.
@return {V} The value at the root of the heap. Returns
    undefined if the heap is empty.