a LRU cache simulation