fit.pl version suited for both 1S and 2S sets of bins