adding methods to user CircularBuffer