added computation of spectrograms to comparator algorithm