A new approach to DNA-aided ancestral trait reconstruction in mammals