optimized grouper iterations by using list extend method and list comprehension.
Merge remote-tracking branch 'origin/master'