The rise of machines and AI in retail