Extremely fast double-ended queue implementation