Circular Buffer C++ Source Code