fixing an error
implementing crossover and selection for task scheduler, with tasks with
known durations