condition assignment draft 1

Created assign_cond_params, which will assign both condition and
subcondition using a better assignment algorithm than before. It is
partially finished - exponential weighting and final return not yet
done.