adding a function to plot the queue size dynamics with time