Made GroupBy(keySelector, elementSelector) method generic