Cultural Evolution in a Population of Heterogeneous Agents