Added euclidean distance computation