add Next Pointer in Tree