FeatChunk currChunk = (FeatChunk)featFile.chunks.get(0);
dist.setTarget(currChunk);
// maintain a set of chunks sorted using dist from targetChunk
MinHeap chunks = new MinHeap(dist);
chunks.addAll(featFile.chunks);
MaxHeap chunks2 = new MaxHeap(500);
NumberFormat fmt = NumberFormat.getInstance();
fmt.setMaximumFractionDigits(3);
double currTime = 0;
while(chunks.size() > 0)
{
dist.setTarget(currChunk);
chunks.rebuildHeap();
currChunk = (FeatChunk)chunks.deleteMin();
// turn currChunk into an EDL chunk
EDLChunk nc = new EDLChunk(currChunk, currTime);
chunks2.add(nc);