Added a heap priority queue.