On the retrieval of binary-coded mass spectra