Binary search tree built in python usage: import bst x=bst.Tree() x[3]='hello' x['sina']=44 del x[3] print(x['sina'])