Check if 2 tree nodes are related (i.e. ancestor-descendant)
if you consider a tree where a node in the tree has n/2 children (say), the running time of setting the labels will be as high as O(n*n). So this labeling scheme wont work ....