The Genealogy of Baseball Teams