Lib file for Circular Buffer operation