a simple lru implementation