Technology is hoping to make a dent in the world’s food waste problem, one ingredient bargain at a time