Genrify the CircularBuffer class

This pull requrest, Generify CirculuarBuffer implemenation in carbon kernel