first commit, newAnagram2 is the main function