actually offline, rather than online bin packing (see prob_old.py)