An Efficient Ranking And Classification Method For Linear Functions, Kernel Functions, Decision Trees, And Ensemble Methods