added important functions in algorithm library in c++ txt file