Update pqueue to use binary heaps.