implementation of the NM multi-channel approach in the grouping algorithm. example updated.