Efficiently Summarizing Relationships in Large Samples: A General Duality Between Statistics of Genealogies and Genomes | Genetics