Added doctest for circular buffer question