tutorial for faster model building in c++