update
Update construct tree

Tree construction is now more robust.  Should not have previous
problems of generating networks that have cycles