function to insert element in binary tree
def insert ( temp , key ) : NEW_LINE INDENT if not temp : NEW_LINE INDENT root = newNode ( key ) NEW_LINE return NEW_LINE DEDENT q = [ ] NEW_LINE q . append ( temp ) NEW_LINE DEDENT