merge-sort sketch