get variables in topological order; export to BNT format for matlab interoperability;