Data source: http://rosettacode.org/wiki/Top_rank_per_group
