use hashtable and lexi sort to accelerate anagrams search
multiset practice