cpp implemenation of Sudoku Solver