get_euclidean_distance function

Calculate the Euclidean distance between x and y.