added simple merge sort implementation
correctly using the comparison function as well in merge sort.