Beyond Individuals: Collective Predictive Coding for Memory, Attention, and the Emergence of Language