demands are now in lists and dict, so that one can find a demand to reallocate again, next step would be to do the rerouting