Print ancestors of a bstree without recursion