Hierarchy, cities size distribution and Zipf's law