Added poll support to PriorityQueue