Sudoku solver in R