An effective method for spectra storage