Returns the position of child. The first node of a tree is in position zero.
If child is not a node of the tree, -1 is returned.