A typescript implementation of the bin-packing problem specifically for textile applications where the width is fixed