Quick sort anagrams