Linear Regression: Add functions to get grouping

Jira: PIVOTAL-40576747

Added new functions that use the heteroskedasticity aggregate and
apply grouping support on user supplied columns.