Added iterables.groupby implementation

A new and improved implementation of groupby, to replace the one in the PR I just closed. No longer uses tuples