and even more ugliness (rewriting sudoku from norvig.com in scala)