Add allObjects to the priority queue