C++ source code for one of my research projects