Real Time Plotting C++