Refactored anagrams.rs
Added test to anagram.rs and refactored a bit