add spectral segment handling on MassSpectrum class