C++ code for those data structure introduce in <Introduce to Algorithm>