linkedlist and lru in python. bt inorder