forgot <algorithm> in agent_composite