The Cultural Evolution of Science