Commit implementation of merge sort.