C based code for solving sudoku