circular_buffer: constant complexity of clear method and destructor; added erase_begin and erase_end methods