add some function in pthread_qsort.