the c++ implements of classic or interesting algorithm problem