n-dimensional Sudoku solver