topk reduction

Zhen has written a generic --topk reduction that looks good to me. What do you think?

Priority queue could be replaced by the possibly faster sorted array you suggested earlier.
recommend.cc could get simpler and use this reduction once the new matrix factorization as a reduction code is merged in.