byX: Calls FUN on a subset of data in blocks of size 'subset_size' of unique indices.
Description
One subset consists of 'subset_size' unique groups and thus of all rows which
in 'data' which have any of these groups.
The last subset might have less groups, if the number of unique groups is not dividable by subset_size.