A new procedure to optimize the selection of groups in a classification tree