[elixir] move word matching to seperate function and rename anagram?