Added various ringbuffer implementations + tests + performance tests.