String Algorithms in C/C++