Behavioral flexibility in age castes of the antPheidole dentata