modify ELIFO: dequeue from highest rank when queue size is small