added benchmarks for group
re-implement group, and add parallel version