Add BagGroup UDF and tests
Merge pull request #63 from william-g-vaughan/master

Add BagGroup UDF and tests