update NQueens problems.