finished part of spectral radius code, need to finish