Algorithms are reinventing the way we discover products and connect with brands and retailers. But how will this change retail?