process_cat_feats function

Process categorical features