Implementing Sudoku solver program in C++