Fixing error in empirical_edit_cost