Classification of Mass Spectra via Pattern Recognition