UVa 102 – Ecological Bin Packing solution in C language