implemetation of getRecord and LRU memory