Update CAlgorithm.cpp