Got LRU working using a list to keep track of least recently used buffers. The list is shifted and the used element is moved to the end when one is accessed.