compute distances between rectangles