Each 1d group needs to know how to compute nbins
Better frange implementation
Tests for group 2d