primitive bin packing of blocks