frank (cargo): Frank - Fetch and Rank adds bolt-on generic vector ranking and fetching features.  Just use and let resultvec = vector.rank() or resultvec = vector.fetch(&my_picks_vec).  Fun extras: sequence_sum_of_squares (by calculus, not iteration), integer means, dense_ranking. 
Keywords: generic|rank|hoeffding|vector|fetch