Add RingBuffer
Rework plotting
Finally fix plotting speed