Origin of the Mind. From viruses to beliefs