How Social Media Shapes Our Beliefs Through Algorithms