DP. packing problem