Update LRUcache.cpp

fix ring buffer bug