Finished Search and Mergesort