function heapify(compare, array) {
  var n = array.length,
      l = n >> 1,
      i = l;

  while (--i >= 0)
    siftUp(compare, array, i);
}
Converts and array into an abstract heap in linear time.

@param {function} compare - Comparison function.
@param {array}    array   - Target array.