constructor(heap = []) {
    this.heap = [];
    heap.forEach(this.add);
  }
The minimalistic (ad hoc) version of a MaxHeap data structure that doesn't have
external dependencies and that is easy to copy-paste and use during the
coding interview if allowed by the interviewer (since many data
structures in JS are missing).