changed queue to use Linear allocator