Evolution of Neural Complexity in Division of Labor Tasks