study sheds light on the evolution of the earliest dinosaurs