genetic algorithm solution to the n queens problem