make RingBuffer generic and add FloatRingBuffer