Appearance
Removes and returns the root node in the BinaryHeap
const heap = new BinaryHeap<number>([10, 15, 20]); heap.pop() // => 20
This method is an O(log n) operation.