quick sort based on new operator type class