exercise for http://codekata.pragprog.com/2007/01/kata_six_anagra.html