Use the divide-and-conquer paradigm in a manner similar to merge-sort.