Finding halo pairs in cosmological simulations.