function makeHeap(var_args) {
  const h = new Heap();
  let key;
  let value;

  for (let i = 0; i < arguments.length; i++) {
    key = arguments[i][0];
    value = arguments[i][1];
    h.insert(key, value);
  }

  return h;
}
Constructs a heap from key-value pairs passed as arguments
@param {...!Array} var_args List of length-2 arrays [key, value]
@return {!Heap} Heap constructed from passed in key-value pairs