The emergent genius of ant colonies