Add euclidean distance formula