herbivorous dinosaur ancestors