similarity with inverse euclidean distance