Development of new discrimination algorithm using library-based spectral correlation method, Hit quality index (HQI), and voting system