containsValue(val) {
    return this.nodes_.some((node) => node.getValue() == val);
  }
Whether the heap contains the given value.
@param {V} val The value to check for.
@return {boolean} Whether the heap contains the value.