Add a clear() method to PriorityQueue.