p-cyclic matrices and the symmetric successive overrelaxation method