Genetic algorithm for solving N-queen problem (openMP)