First implementation of is_anagram
Simplified a little bit is_anagram