C++ 3d Plotting