use https://github.com/juj/RectangleBinPack class