N-Sudoku solver