Removes and returns the top element of the max-heap.
The type of max-heap.
The max-heap instance.
The removed element or undefined if the heap is empty.
undefined
Removes and returns the top element of the max-heap.