A Matrix Framework for Conjugate Gradient Methods and Some Variants of CG with Less Synchronization Overhead