added General adaptive replacement policy