Added the infinite queue. For that the Resource creating function was changed as well as function resourceMaxCount. Now the resource can have no upper bound.