Hierarchy in the forest: The evolution of egalitarian behavior