neuron_pairs function

Utility function to generate all or random pairs of neurons