Adds qsort and find_median_linear