Quick Sort and Merge Sort Algorithms