public T peek(){
  if (heap.size() > 0)   return heap.elementAt(TOP);
 else   return null;
}

public T peek ( ) { if ( heap . size ( ) > 0 ) return heap . elementAt ( TOP ) ; else return null ; }
returns the element at the top of the heap ; does not alter the heap .
