general improvements of genetic algorithm