add closest pair