Kraft Heinz is using proprietary algorithms and software, called its Lighthouse, to better navigate fluctuating supply-chain demands.