Fix Euclidean Distance, Add gitignore

distance is calculated between the difference of two points, not the sum