calculate euclidean distance for every pair of a csv