poj2346. dynamic-programming. packing problem