Add a euclidean distance function for calcs