pj02 genetic algorithm