rewriting sudoku from norvig.com in scala