Finish priority queue using binary heap