Move circular_buffer and triple into namespace