A simple LRU cache in Java