half implementation of lru cache

Have a clear understanding of lru algorithm. the lru sort the queue depends on the access last time, but the count one element accessed ---- This has led me to implemntaing a wrong and complicated program.