the following is not offered as a definitive or specific/ superior attack on this possibly unexpectedly complex problem but as additional scientific/ theoretical angles/ general study not covered so far.
1st this general area is known/ classified as "bin packing" and this is a 2d case. there are...