convert_feature_name_to_idx function

Convert feature names into feature indices