Improving queueing implementation on high speed switches