Update nqueens.cpp