update solution for leetcode Valid Sudoku