Added RingBuffer and CounterPIDSource classes