Polymorphic social organization in an ant