Sorting algorithm performance analysis.