added euclidDist Function