Brick-and-mortar retailers are looking for an edge in their fight against the e-commerce behemoths, and as the battle rages on, it’s looking like artificial intelligence might be the answer.