Final version of NxN sudoku solver