Giant dinosaurs may have evolved from tiny insect eaters