collapse_correlated_features function

Collapse correlated features