LRUCache implementation in Java