add euclidean distance inline func