BDEPTH

BDEPTH(t;x) calculates the depths of nodes x in tree t.