Sudoku solver with backtracking strategy