There are some data structure Template of C++ and algorithm here