How ALL Social Media Algorithms Work