A conjugate-gradient sparse-matrix method for efficient computation of a cardiovascular model