Java implementations of a circular buffers