Add SquaredEuclideanDistanceMeasure and modify EuclideanDistanceMeasure