Circular Buffer V5 with doubles