Changed deque buffer to boost::circular_buffer for memory management improvement