Solves sudoku problems