adding solution for leastrecently used cache