Sudoku problem in scala