Update edit_distance.cpp