Update editdist.cpp