Finished priority queue with heap