Sudoku solver in ruby