Determines if as many individuals from the former population as indicated
with maxPreserved must be preserved even if they don't improve fitness of
the worst in the current population.
Sorts a given array of doubles in ascending order and returns an array of
integers with the positions of the elements of the original array in the
sorted array.
Sorts a given array of integers in ascending order and returns an array
of integers with the positions of the elements of the original array in
the sorted array.