Introduce groupBy' and fix #53
Merge pull request #54 from nikita-volkov/grouping

Introduce groupBy' and fix #53