How Sorting Algorithms Use Math to Optimize Performance Sorting algorithms