Efficient Algorithms for Conducting Stochastic Dominance Tests on Large Numbers of Portfolios