Implemented the Cache class. Limited to LRU for now.