cleanup and rename bwa example
fixed internal ordering in topological sort