Eliminate COND from nested loop.
Merge pull request #5 from deliciousrobots/optimize-selection

Eliminate COND from nested loop. 

Nice work. Clearly late night coding is suboptimal.