Added Euclidean distance.