adding hashmap work
non-recursive tree traversal with stack
tree work