updated with newer code that was in progfun-forcomp

The program Anagrams.scala still doesn't pass all test.
Update it with newer code from thinkpad.