#define pure C template of circular buffer class