Reference for coding style in C++ with few functions