[kusi] modification of euDist.m