Spectrum reduce

Draft of code to spectrum reduction via intgration
so we can do integration on multiple ranges if x_min is array?