Naive sudoku solver implementation