Add concurrent queue class.
Add memory deletion.