Finally, I made the LRU CACHE working without any external java library