Quick Select Algorithm To Find Median, I normally use the selection-sort to get the median of the subarrays of 5 elements.