From the Anagram Code Kata http://codekata.pragprog.com/2007/01/kata_six_anagra.html