How scientists extract and analyse DNA from archaeological remains spanning 40,000 years, and what it reveals about human migration and ancestry.