Sudoku solver in C++