A Team Queue checks whether someone to be enqueued already has a team member among the elements of the queue. If the element does, it will be inserted right before its team member(s).