First implementation of anagram finding