support X_norm_squared in euclidean_distances