[PD] circular buffer [attn. obiwannabe)