Update anagrams

optimize angram method