implemented the solution for populating the nextRight pointer for BinaryTree
implemented the solution for populating the nextRight pointer for BinaryTree