public void populate(Node root){
        NodeRef nodeRef = new NodeRef();
        populate(root,nodeRef);
    }
http://www.geeksforgeeks.org/populate-inorder-successor-for-all-nodes/
src/com/interview/tree/PopulateInOrderSuccessor.java