Implementation of LRU cache.