euclidean function

Euclidean distance (lowlevel function)