create closest pair