LRU implementation with linkedlist