Queue updated in order to be able to have infinite capacity. 0 or a negative integer must be given as input