A rank-size approach to the analysis of socio-economics data