Add circular buffer class template.