code for LRU Cache