simulated annealing in N queens problem