solve sudoku by ruby