Algorithm Programming C/C++