Exercise: Merge sort implementation