knn: fixed some type mismatches by assigning the results of distance calculations to `double` values everywhere
knn: fixed some type mismatches by assigning the results of distance calculations to `double` values everywhere

rgeorgiev583/ai-2016-2017