optimize the shudu2 code
the function sequence is similar with python soduku.search