Recursive sudoku solver in C++