Conceptualized caching algorithm with std containers