Weeds: a CLASS extension for the analysis of millimeter and sub-millimeter spectral surveys