parent function

Find the parent of a node in a context tree