recursion like DFS(stack),sometimes not efficient as BST