usable version of erGroupingNM() but only for one single channel (more channels make a combinatorial explosion in the number of possible sequences to test)