Add NlogN closest-pair algorithm, from Tim Roughgarden's lectures