Development of pattern recognition technique for classification of RNA secondary structures by small molecules