M sort

Added Merge Sort and related functions