algo4: dp: gmax: Stacking boxes 3d