Algorithms and Data Structure's C++ implementation