erlang - bring anagram up to date with other implementations