Quasi-linear direct numerical simulation in C++