simple implementation of groupby

still need to write tests for it, but It Compiles