Re-add euclidian distance algo