Added closest-pair code