Most efficient method to groupby on an array of objects Most efficient method to groupby on an array of objects arrays arrays