print keys in a BST not using recursion