Merge sort skeleton