Algorithms are designed to exacerbate emotional response – and they increasingly drive all social discourse.