An Iterated Conditional Modes / Medians Algorithm for Empirical Bayes Selection of Massive Variables