TTNode::depth and related methods in TT class added