Basic (slow) ring buffer impl