Added destructor to PathTree