@ cpp/source.cpp: algorithm improved