Amazon has poured tens of billions of dollars into building close to 100 highly automated ware-houses around the country to cut costs and reduce delivery times. That reality has put competitors in a quandary. How can they match Amazon’s capabilities without spending the same kind of money to build a similar network?