add the algorithm for the n queen issue