Solves a given Sudoku puzzle