iDist function

Euclidean distance matrix