Applies Merge Sort Algorithm and Binary Search Alogorithm