LRU cache in Java.