Code for a Merge Sort