update solution for lru cache