Implement group score by method

I have finished the implementation of the group score by method. It
returns the groups mapped to the aggregated scores.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>