Cleaned code for N-Queens distinct solutions in C++