code: function Heap(compare) {
    if (!(this instanceof Heap))
      return new Heap(compare);
  
    this.compare = comparator;
    this.items = [];
  
    if (compare)
      this.set(compare);
  }
docs: Binary Heap
  @alias module:utils.Heap
  @constructor
  @param {Function?} compare