Optimized Sequential GroupBy
Conflicts resolved