All combinations of indices from 2 integer vectors in R: comes handy when using pairs of elements of other objects.