src/listmerger/heap.cc
void heapReplaceHead(unsigned newData,
		     unsigned data[],
		     unsigned index[],
		     unsigned size)

{

  // replace the newItem as the top of the tree

  data[0] = newData;

  heapRebuild(data,index,0,size);

}
/*  
    Replace the current
    head node to a new node.
    The size of heap 
    is not changed.

*/
Replace the current
head node to a new node.
The size of heap
is not changed.
Replace the current head node to a new node . The size of heap is not changed .
void heapReplaceHead(unsigned newData,
		     unsigned data[],
		     unsigned index[],
		     unsigned size)
{
  data[0] = newData;
  heapRebuild(data,index,0,size);
}
void heapReplaceHead ( unsigned newData , unsigned data [ ] , unsigned index [ ] , unsigned size ) { data [ 0 ] = newData ; heapRebuild ( data , index , 0 , size ) ; }
Replace the current
head node to a new node.
Replace the current head node to a new node .
// replace the newItem as the top of the tree