Program to find in order successor of a node