Issue 190 - Implement groupBy r=millermedeiros

I supposed this could also be `array/groupBy`?
we have an `identity` function inside the `function` package.. so delete this and add it as a dependency: `../function/identity`. thanks!