remove locking and add C++11 random number generation and macros
implement a lockfree waitfree circular queue.