Replace Bubble Sort with Merge Sort