Finished LRUCache function.