getKeys() {
    const nodes = this.nodes_;
    const rv = [];
    const l = nodes.length;
    for (let i = 0; i < l; i++) {
      rv.push(nodes[i].getKey());
    }
    return rv;
  }
Gets the keys of the heap.
@return {!Array<K>} The keys in the heap.