make euclidean distance a module