Solve N-Queen using genetic and simulated annealing algorithm