Implement Sudoku solver