Added initial support for a thread-safe circular buffer.
Made the CircularBuffer thread safe, though corruptable if the load is large and size is small.