Genetic algorithm stuff for master's thesis