adding left right pointers to node