mkBinPacking: convert a cutting stock instance into bin packing format

def mkBinPacking(w,q):
    """mkBinPacking: convert a cutting stock instance into bin packing format"""
    s = []
    for j in range(len(w)):
        for i in range(q[j]):
            s.append(w[j])
    return s