Combined pulse_data and circ_buffer classes.

Now detector uses pulse_data for data storage directly.
TODO: unit testing, circular buffer index offset for
accessors, fix parameter names, clean up, and comment.
Removed obsolete circ_buffer and defunct/ code.