C++ Sudoku solver