s_median function

Median of a collection of spectra