Added function that calculates the spectral radius of the G matrix of the Gauss-Seidel and Gauss-Jacobi algorithms