Add groupby

Groups consecutive rows with the same key value in the input stream
into a single vector.