add a function to calculate Euclidean distance
add two files to store the mapping values