Lightweight, optimized queue implementation for CL
