Midpoint algorithm for map polygon mending.