Optimal Foraging and the Division of Labor