Paths shown only once

Paths are shown only once now in the tree traversal algorithms