A process known as rescue karyotyping is allowing doctors to look back into the genetic history