Computing the perimeter of a set of rectangles - Vitányi, Paul M.; Wood, Derick (1979)