compilation of c++ codes for some standard algorithms