public static void printparent(Node[] A)
  {
     System.out.println("Parent of root "+A[0].tree_key+","+A[0].heap_key+" is null");
    if(r!=0)
    {     
     for(int i=0;i<r;i++)
     {
      System.out.println("Parent of "+rt[i].tree_key+","+rt[i].heap_key+" is "+rt[i].parent.tree_key+","+rt[i].parent.heap_key);
     }
    }
    
    if(l!=0)
   {     
    for(int i=0;i<l;i++)
    {
      System.out.println("Parent of "+lt[i].tree_key+","+lt[i].heap_key+" is "+lt[i].parent.tree_key+","+lt[i].parent.heap_key);
    }
   }
  
  }