decided to quicksort to check if anagrams
did anagrams