Efficient LRU Cache Design and Implementation in C++