an STL-like C++ tree class used in various projects