Cyclic_buffer (C# with tests)