euclidean distance + bug fixed in coseno distance