tournament: Tournament function
Description
This function simulates selection of next generation of agents according to
their fitness.
Usage
tournament(agents, fitness)
Arguments
agents
A list of agents to be assessed by fitness
fitness
The fitness vector on which agents will be assessed. Each
element in the vector identifies a single agent's fitness
Value
agents A new list of agents selected according to fitness