auto_grouping function

Reduce cardinality in categorical variable by automatic grouping