targetChunk.addFeature(Integer.MIN_VALUE);
dist.setTarget(targetChunk);
// maintain a set of chunks sorted using dist from targetChunk
Heap chunks = null;
if(reverseSort)
chunks = new MaxHeap(dist);
else
chunks = new MinHeap(dist);
chunks.addAll(featFile.chunks);
NumberFormat fmt = NumberFormat.getInstance();
fmt.setMaximumFractionDigits(3);
double currTime = 0;
while(chunks.size() > 0)
{
FeatChunk match = (FeatChunk)chunks.remove(0);
// turn match chunk into an EDL chunk
EDLChunk nc = new EDLChunk(match, currTime);
if(debug)