[r] Euclidean distance of two vectors