Self-Similarity in Population Dynamics: Surname Distributions and Genealogical Trees