def getCliInstance():
	global _dbcli
	if not _dbcli:
		_dbcli = DatabaseHelper()
	return _dbcli
def insert(root, key):
    left, right = split(root, key)
    return merge(merge(left, Treap(key)), right)