Then I have some more questions, because your code does not match your description.

- When the entry is at a crossover, where is the crossOver() function?

- And what purpose has the tmp[] series?