chane custom qsort to qsort.h
delete legacy quick sort code