Once the preserve of paid search and programmatic advertising, algorithms are now guiding earned media campaigns. How can PRs best handle these new power tools?