Solved LRU Cache problem