here in my binary tree data structure:
//Every node has value and index class Node { Node left,right; int index; T value;