min_cost optional argument to edit_distance