Describir: Design, implementation, and optimization of classification algorithm for identification of small molecules using annotated spectral trees