Replace global stack by the static one
Replace global stream with the shared pointer
Merge branch 'master' of https://github.com/onidzelskyi/TreeWalker