Ruby based sudoku solver