A new procedure to optimize the selection of groups in a classification tree: Applications for ecological data