Generates anagrams for a given word