moved euclidean_distance to distance module
optimized some imports