added new function to determine the predecessor position of node for a given predecessor