finished closest pair problem