A survey on the cutting and packing problems