C++ Source Code for data structure and algorithm