Optimal Clock LRU algorithm ( C code )