sped up computation of spectral signatures, added two ways to approx the signatures