Refactored.
Implementing LFU cache.