iterative search for BST