Added adjlist-to-tree.js, code is by Jerry H.