Updated Bubble Sort and Merge Sort