Added CBuffer class to gfxlib