Artificial intelligence could be Amazon's ticket into the ultra-exclusive $4 trillion club.