GroupBy roughly complete. Still need to figure out how to format tuples such that they are scanned correctly.
GroupBy should now be working. Will need to test later.