Update nQueens.cpp