Added CAlgo codes