Mallows' L2 distance in some multivariate methods and its application to histogram-type data