Implementation of the standard genetic algorithm with roulette wheel selection