attaching parent info to the binary tree node