The Closest-Pair and Convex-Hull Problems by Divide-and-Conquer