doc/paper.tex: add to section "Adapting C++ code"