e2dist function

Calculates the pair-wise distances between two sets of points