Changed Euclidian Distance calc