Detecting closest clones to eachother

we want to detect closest 2 clones.