modified g-clock algorithm logic

added a null return if no buffer was replaced; changed logic of G-clock algorithm-included RC and pins