def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def dfs_print(root):
        if root is None:
            return
        dfs_print(root.left)
        print(str(root.key) + ' ', end='')
        dfs_print(root.right)