public void ApplySelection( List<IChromosome> chromosomes, int size ) { // sort chromosomes chromosomes.Sort( ); // remove bad chromosomes chromosomes.RemoveRange( size, chromosomes.Count - size ); } }