LRU Cache implemented in Java