Finished basic imperative merge sort part