sort qsort select_sort array funciton