added matching spectral algorithm