maxHeapify(size) {
    let lastParent = Math.floor(((size - 1) - 1) / 2);
    while (lastParent >= 0) {
      this.siftDown(lastParent, size - 1);
      lastParent--;
    }
  }
/**
   * Building a max heap from the first {size} elements of this.arr
   * @param {number} size size of the heap
   */
Building a max heap from the first {size} elements of this.arr
@param {number} size size of the heap
Building a max heap from the first { size } elements of this . arr @param { number } size size of the heap
maxHeapify(size) {
    let lastParent = Math.floor(((size - 1) - 1) / 2);
    while (lastParent >= 0) {
      this.siftDown(lastParent, size - 1);
      lastParent--;
    }
  }
maxHeapify ( size ) { let lastParent = Math . floor ( ( ( size - 1 ) - 1 ) / 2 ) ; while ( lastParent >= 0 ) { this . siftDown ( lastParent , size - 1 ) ; lastParent -- ; } }
Building a max heap from the first {size} elements of this.arr
 @param {number} size size of the heap
Building a max heap from the first { size } elements of this . arr @param { number } size size of the heap