add min_edit_distance