Sorting algorithm is now called from a static method instead of being
implemented in the calcMedian function.