Recursive spectral decomposition