Weigh euclidean distance