this is a simulator for Max-weight(back-pressure) Algorithm