passing around the list of nodes visited & to visit
making stack tail-recursive for efifciency
Merge branch 'master' of github.com:Aurametrix/Alg-S