priority queue example