1 dimensional bin packing