add istream constructors to CircularBuffer and CircularReverseBuffer