- Switch from QuickSort to QuickSelect in apply_median()