Changes for buffer replacement policy