Added groupBy method to EquaSets.