initialized genetic algorithm