kawamoto edit_distance v 1.0