Efficient grouping, MML piecewise regression analysis and classification