update EditDistance.cpp