Implemented Merge Sort

Added functionality for the merge sort algorithm