Fixed the hilarious wrong Euclidean distance function.

I'm sick. >.> Thanks, cads!