py bst
non recursive bst