ParStream groupBy function