[Tournament Selection]: Fixed possible undefined behaviour

Fixed possible undefined behaviour in the GetParent method of
TournamentSelection - if it runs out of array before it picks both
parents, it tries again until it gets it.

Signed-off-by: Sebastian Lenartowicz <slenarto@uoguelph.ca>