Added Euclidean distance-based similarity calculation.