Centuries-old genetic material can solve historical mysteries, from lost species to what killed Napoleon’s army.