A Model for the Origin of Agriculture in the Near East