continue with exercise 3
Fix a bug in the insertSet where the second argument (set) should first be sorted before actually perform the insertion.