San Francisco has found a solution to the problem of food waste