Implement sudoku solver.