Given category (1-D int), revenue (1-D float) and integer n, return
the indices of the top-n revenue rows within each category:
n rows contributes all of theirsInput
category = [0 0 0 1 1]
revenue = [5. 9. 7. 2. 8.]
n = 2
Output
[1 2 4 3]