Operation GroupByUntil

Issue #52

Rebased.