PriorityQueue and Trees