sudoku solver in ruby