Added a cyclic (ring) buffer class.